<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.3.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">
  <meta name="google-site-verification" content="GQKWeXX_R5yKDbbtn2thIUu02Nnw-5qEiWWc_t-cux4">
  <meta name="baidu-site-verification" content="code-HF0JkHFmvi">

<link rel="stylesheet" href="/css/main.css">

<link rel="stylesheet" href="https://fonts.loli.net/css?family=Noto Serif SC:300,300italic,400,400italic,700,700italic|Lobster Two:300,300italic,400,400italic,700,700italic|EB Garamond:300,300italic,400,400italic,700,700italic|PingFang SC:300,300italic,400,400italic,700,700italic&display=swap&subset=latin,latin-ext">
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"xiexianliang.gitee.io","root":"/","scheme":"Mist","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"hide","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":"default"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":"ture","mediumzoom":true,"lazyload":"ture","pangu":false,"comments":{"style":"tabs","active":"valine","storage":true,"lazyload":false,"nav":null,"activeClass":"valine"},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"寻找博文","hits_empty":"找不到您输入的关键字: ${query}","hits_stats":"找到了 ${hits} 的結果，花了 ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":false,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeIn","post_body":"fadeIn","coll_header":"fadeIn","sidebar":"fadeIn"}}};
  </script>

  <meta name="description" content="hexo主题迁移到gitee，并提交百度收录">
<meta property="og:type" content="article">
<meta property="og:title" content="2021-02-15-利用gitee搭建hexo博客，百度收录">
<meta property="og:url" content="https://xiexianliang.gitee.io/posts/2040c6f9/index.html">
<meta property="og:site_name" content="小谢的博客">
<meta property="og:description" content="hexo主题迁移到gitee，并提交百度收录">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215224132151.png">
<meta property="og:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215224545457.png">
<meta property="og:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215224711987.png">
<meta property="og:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215224736091.png">
<meta property="og:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215225528390.png">
<meta property="og:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215225953844.png">
<meta property="og:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215230151832.png">
<meta property="og:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215230241282.png">
<meta property="og:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215230628528.png">
<meta property="og:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215231117677.png">
<meta property="og:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215231202822.png">
<meta property="og:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215231556881.png">
<meta property="og:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215231654670.png">
<meta property="article:published_time" content="2021-02-15T14:09:13.000Z">
<meta property="article:modified_time" content="2021-02-16T03:44:39.996Z">
<meta property="article:author" content="Nickxie">
<meta property="article:tag" content="hexo-next主题">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215224132151.png">

<link rel="canonical" href="https://xiexianliang.gitee.io/posts/2040c6f9/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>2021-02-15-利用gitee搭建hexo博客，百度收录 | 小谢的博客</title>
  


  <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?f7e00f49542f449f55bdd5c7219b7ff8";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
<!-- 页面点击小红心 -->
  <div class="container">
    <div class="headband"></div>
    <a target="_blank" rel="noopener" href="https://github.com/happy2h" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">小谢的博客</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签<span class="badge">7</span></a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类<span class="badge">4</span></a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档<span class="badge">10</span></a>

  </li>
        <li class="menu-item menu-item-sitemap">

    <a href="/sitemap.xml" rel="section"><i class="fa fa-sitemap fa-fw"></i>站点地图</a>

  </li>
        <li class="menu-item menu-item-commonweal">

    <a href="/404/" rel="section"><i class="fa fa-heart fa-fw"></i>公益 404</a>

  </li>
  </ul>

</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>
  <div class="reading-progress-bar"></div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://xiexianliang.gitee.io/posts/2040c6f9/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/emblemmatic-happy-2h-logo-8.png">
      <meta itemprop="name" content="Nickxie">
      <meta itemprop="description" content="摆脱冷气，向上走">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="小谢的博客">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          2021-02-15-利用gitee搭建hexo博客，百度收录
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2021-02-15 22:09:13" itemprop="dateCreated datePublished" datetime="2021-02-15T22:09:13+08:00">2021-02-15</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2021-02-16 11:44:39" itemprop="dateModified" datetime="2021-02-16T11:44:39+08:00">2021-02-16</time>
              </span>

          
            <span id="/posts/2040c6f9/" class="post-meta-item leancloud_visitors" data-flag-title="2021-02-15-利用gitee搭建hexo博客，百度收录" title="阅读次数">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span class="leancloud-visitors-count"></span>
            </span>
  
  <span class="post-meta-item">
    
      <span class="post-meta-item-icon">
        <i class="far fa-comment"></i>
      </span>
      <span class="post-meta-item-text">评论数：</span>
    
    <a title="valine" href="/posts/2040c6f9/#valine-comments" itemprop="discussionUrl">
      <span class="post-comments-count valine-comment-count" data-xid="/posts/2040c6f9/" itemprop="commentCount"></span>
    </a>
  </span>
  
  <br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="far fa-file-word"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>1.3k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="far fa-clock"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>1 分钟</span>
            </span>
            <div class="post-description">hexo主题迁移到gitee，并提交百度收录</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h3 id="动机"><a href="#动机" class="headerlink" title="动机"></a>动机</h3><p>因为之前的hexo博客是建在GitHub仓库的，百度的爬虫无法抓取到GitHub的内容，所以想把仓库搬到国内的gitee上来。但是请注意gitee page目前是不支持自定义域名的，所以想自定义域名的朋友可以考虑GitLab，我还没尝试过。</p>
<h3 id="仓库迁移"><a href="#仓库迁移" class="headerlink" title="仓库迁移"></a>仓库迁移</h3><p>因为我的Git page已经绑定过域名了，如果直接在hexo根目录下的<code>_config.yml</code>文件下已经将<code>url</code>的值定为了自定义的域名，使用sitemap插件生成网址地图时，只会生成跟上文提到的<code>url</code>开头的网址。当你把这样的站点地图和你的gitee page的域名提交给百度站长时，会提示错误，不能包含其他网址域名。所以这里要把之前的hexo的所有文件给复制一份，然后新建一个gitee的工作目录，粘贴之前的博客文件，以后再写blog时，要在GitHub的工作区和Gitee的工作区分别<code>hexo  d</code>一下。</p>
<h4 id="Gitee仓库搭建"><a href="#Gitee仓库搭建" class="headerlink" title="Gitee仓库搭建"></a>Gitee仓库搭建</h4><p>这里假设你已经搭建过GitHub的blog，并且你已经生成的当前用户的RSA密钥，打开<a target="_blank" rel="noopener" href="https://gitee.com/">Gitee官网</a>，点击右上角头像，记住自己的用户名，下图框中的值。</p>
<p><img data-src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215224132151.png" alt="image-20210215224132151"></p>
<p>然后新建仓库，在新建仓库的，仓库名称填写和上面用户名一样的值，这样在Gitee page生成的链接会是<code>https://username.gitee.io</code>这种形式的短网址。</p>
<p><img data-src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215224545457.png" alt="image-20210215224545457"></p>
<p>仓库创建完成以后，进入到仓库详细页面，点击服务-Gitee page。</p>
<p><img data-src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215224711987.png" alt="image-20210215224711987"></p>
<p><img data-src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215224736091.png" alt="image-20210215224736091"></p>
<p>勾选强制HTTPS。</p>
<h4 id="Gitee添加RSA密钥"><a href="#Gitee添加RSA密钥" class="headerlink" title="Gitee添加RSA密钥"></a>Gitee添加RSA密钥</h4><p>新建RSA密钥可以自行百度，在c盘用户个人用户文件夹下的<code>.ssh</code>的<code>id_rsa.pub</code>文件，将里面的内容全部复制，点Gitee的头像，设置 - 安全设置 - SSH公钥</p>
<p><img data-src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215225528390.png" alt="image-20210215225528390"></p>
<p>点击确定即可。</p>
<h3 id="本地文件配置"><a href="#本地文件配置" class="headerlink" title="本地文件配置"></a>本地文件配置</h3><p>我是将之前的内容全部复制到了Gitee下的工作目录，需要更改hexo根目录下的<code>_config.yml</code>配置，下面的URL要改为Gitee page的网址。</p>
<p><img data-src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215225953844.png" alt="image-20210215225953844"></p>
<p>还有仓库deploy的SSH地址也要改，这个地址可以去博客仓库点击克隆 - SSH</p>
<p><img data-src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215230151832.png" alt="image-20210215230151832"></p>
<p>复制一下这个地址，然后粘贴到<code>_config.yml</code>目录下如下的位置：</p>
<p><img data-src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215230241282.png" alt="image-20210215230241282"></p>
<h3 id="提交给百度收录"><a href="#提交给百度收录" class="headerlink" title="提交给百度收录"></a>提交给百度收录</h3><p>打开<a href="![](https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215230241282.png">百度站长</a>)，点击添加网站，选择协议头为https，然后复制一下你个Gitee page的网址，点击确定，会有一个域名验证的过程，这里选择http标签验证，复制content双引号内的内容，打开next主题的<code>_config.yml</code>文件，这里不是站点的，搜索<code>baidu_site_verification</code>，后面的值粘贴刚刚的内容，然后保存，在git bash里执行<code>hexo g</code>和<code>hexo d</code>。然后在Gitee page手动部署一下，然后回到百度站长点击验证即可通过。注意一下，这里的与GitHub page不同Gitee page需要手动部署。</p>
<p><img data-src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215230628528.png" alt="image-20210215230628528"></p>
<p><img data-src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215231117677.png" alt="image-20210215231117677"></p>
<p><img data-src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215231202822.png" alt="image-20210215231202822"></p>
<p>验证完以后，提交站点地图，生成站点地图的方法是安装两个插件，这里网上有很多，可以搜一下。已经安装的是<code>https://your username.gitee.io/baidusitemap.xml</code>，将这个网址提交给普通收录 - sitemap下,，如果没有问题的话应该会显示链接数量和正常状态。</p>
<p><img data-src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215231556881.png" alt="image-20210215231556881"></p>
<p>HTTPS验证也应该是正常的，这里应该是等着收录即可，百度的收录可慢了，多等等别急。</p>
<p><img data-src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/image-20210215231654670.png" alt="image-20210215231654670"></p>

    </div>

    
    
    
	  
        

<div class="wechat_OA">
      <span>欢迎关注我的公众号</span>
      <br>
      <img src ="https://cdn.jsdelivr.net/gh/happy2h/PicPool_cdn/qrcode_for_gh_13e96145e8ee_344.jpg">
      </div>
<div>
<ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者： </strong>Nickxie
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="https://xiexianliang.gitee.io/posts/2040c6f9/" title="2021-02-15-利用gitee搭建hexo博客，百度收录">https://xiexianliang.gitee.io/posts/2040c6f9/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="noopener" target="_blank"><i class="fab fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！
  </li>
</ul>
</div>


      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/hexo-next%E4%B8%BB%E9%A2%98/" rel="tag"><i class="fa fa-tag"></i> hexo-next主题</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/posts/b8ba51f1/" rel="prev" title="2021-01-15-To the moon推荐">
      <i class="fa fa-chevron-left"></i> 2021-01-15-To the moon推荐
    </a></div>
      <div class="post-nav-item">
    <a href="/posts/14901ff4/" rel="next" title="2021-02-21-next侧边栏添加网易云歌单">
      2021-02-21-next侧边栏添加网易云歌单 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  

  <div>
    
    <div>
    
        <div style="text-align:center;color: #ccc;font-size:14px;">------------------ 哈哈你发现我了------------------</div>
    
</div>
    
  </div>



          </div>
          
    <div class="comments" id="valine-comments"></div>

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%8A%A8%E6%9C%BA"><span class="nav-number">1.</span> <span class="nav-text">动机</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E4%BB%93%E5%BA%93%E8%BF%81%E7%A7%BB"><span class="nav-number">2.</span> <span class="nav-text">仓库迁移</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#Gitee%E4%BB%93%E5%BA%93%E6%90%AD%E5%BB%BA"><span class="nav-number">2.1.</span> <span class="nav-text">Gitee仓库搭建</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Gitee%E6%B7%BB%E5%8A%A0RSA%E5%AF%86%E9%92%A5"><span class="nav-number">2.2.</span> <span class="nav-text">Gitee添加RSA密钥</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%E9%85%8D%E7%BD%AE"><span class="nav-number">3.</span> <span class="nav-text">本地文件配置</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%8F%90%E4%BA%A4%E7%BB%99%E7%99%BE%E5%BA%A6%E6%94%B6%E5%BD%95"><span class="nav-number">4.</span> <span class="nav-text">提交给百度收录</span></a></li></ol></div>
      </div>

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Nickxie"
      src="https://pic-pool-1302938551.cos.ap-nanjing.myqcloud.com/image/emblemmatic-happy-2h-logo-8.png">
  <p class="site-author-name" itemprop="name">Nickxie</p>
  <div class="site-description" itemprop="description">摆脱冷气，向上走</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">10</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">4</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">7</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="mailto:893956235@qq.com" title="E-Mail → mailto:893956235@qq.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://www.cnblogs.com/fx2h/" title="博客园 → https:&#x2F;&#x2F;www.cnblogs.com&#x2F;fx2h&#x2F;" rel="noopener" target="_blank"><i class="fas fa-blog fa-fw"></i>博客园</a>
      </span>
  </div>



      </div>
    
    
    </div>
  </aside>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Nickxie</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-chart-area"></i>
    </span>
      <span class="post-meta-item-text">站点总字数：</span>
    <span title="站点总字数">15k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
      <span class="post-meta-item-text">站点阅读时长 &asymp;</span>
    <span title="站点阅读时长">13 分钟</span>
</div>


        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>






<script>
  (function() {
    function leancloudSelector(url) {
      url = encodeURI(url);
      return document.getElementById(url).querySelector('.leancloud-visitors-count');
    }

    function addCount(Counter) {
      var visitors = document.querySelector('.leancloud_visitors');
      var url = decodeURI(visitors.id);
      var title = visitors.dataset.flagTitle;

      Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify({ url })))
        .then(response => response.json())
        .then(({ results }) => {
          if (results.length > 0) {
            var counter = results[0];
            leancloudSelector(url).innerText = counter.time + 1;
            Counter('put', '/classes/Counter/' + counter.objectId, { time: { '__op': 'Increment', 'amount': 1 } })
              .catch(error => {
                console.error('Failed to save visitor count', error);
              });
          } else {
              Counter('post', '/classes/Counter', { title, url, time: 1 })
                .then(response => response.json())
                .then(() => {
                  leancloudSelector(url).innerText = 1;
                })
                .catch(error => {
                  console.error('Failed to create', error);
                });
          }
        })
        .catch(error => {
          console.error('LeanCloud Counter Error', error);
        });
    }

    function showTime(Counter) {
      var visitors = document.querySelectorAll('.leancloud_visitors');
      var entries = [...visitors].map(element => {
        return decodeURI(element.id);
      });

      Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify({ url: { '$in': entries } })))
        .then(response => response.json())
        .then(({ results }) => {
          for (let url of entries) {
            let target = results.find(item => item.url === url);
            leancloudSelector(url).innerText = target ? target.time : 0;
          }
        })
        .catch(error => {
          console.error('LeanCloud Counter Error', error);
        });
    }

    let { app_id, app_key, server_url } = {"enable":true,"app_id":"JW23wDMOvwcdXARgN5diGJg2-gzGzoHsz","app_key":"lUNq9EVFnYERYe1GnxQDvLrx","server_url":null,"security":false};
    function fetchData(api_server) {
      var Counter = (method, url, data) => {
        return fetch(`${api_server}/1.1${url}`, {
          method,
          headers: {
            'X-LC-Id'     : app_id,
            'X-LC-Key'    : app_key,
            'Content-Type': 'application/json',
          },
          body: JSON.stringify(data)
        });
      };
      if (CONFIG.page.isPost) {
        if (CONFIG.hostname !== location.hostname) return;
        addCount(Counter);
      } else if (document.querySelectorAll('.post-title-link').length >= 1) {
        showTime(Counter);
      }
    }

    let api_server = app_id.slice(-9) !== '-MdYXbMMI' ? server_url : `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`;

    if (api_server) {
      fetchData(api_server);
    } else {
      fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id)
        .then(response => response.json())
        .then(({ api_server }) => {
          fetchData('https://' + api_server);
        });
    }
  })();
</script>


      </div>
    </footer>
  </div>
  

  
  <script src="/lib/anime.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
  <script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/medium-zoom@1/dist/medium-zoom.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/lozad@1/dist/lozad.min.js"></script>

<script src="/js/utils.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>




  
  <script>
    (function(){
      var canonicalURL, curProtocol;
      //Get the <link> tag
      var x=document.getElementsByTagName("link");
		//Find the last canonical URL
		if(x.length > 0){
			for (i=0;i<x.length;i++){
				if(x[i].rel.toLowerCase() == 'canonical' && x[i].href){
					canonicalURL=x[i].href;
				}
			}
		}
    //Get protocol
	    if (!canonicalURL){
	    	curProtocol = window.location.protocol.split(':')[0];
	    }
	    else{
	    	curProtocol = canonicalURL.split(':')[0];
	    }
      //Get current URL if the canonical URL does not exist
	    if (!canonicalURL) canonicalURL = window.location.href;
	    //Assign script content. Replace current URL with the canonical URL
      !function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?"https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif":"//api.share.baidu.com/s.gif";t?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var i=new Image;i.src=n}}(window);})();
  </script>















  

  

  


<script>
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  NexT.utils.getScript('https://cdn.jsdelivr.net/npm/valine@1.4.14/dist/Valine.min.js', () => {
    var GUEST = ['nick', 'mail', 'link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item => {
      return GUEST.includes(item);
    });
    new Valine({
      el         : '#valine-comments',
      verify     : true,
      notify     : false,
      appId      : 'zQiCLQwgbdMles6p7g7Lq5h1-gzGzoHsz',
      appKey     : 'eMz4PYnI5an3O1Lf2cf6HWm9',
      placeholder: "留下你的想法...",
      avatar     : 'monsterid',
      meta       : guest,
      pageSize   : '10' || 10,
      visitor    : false,
      lang       : '' || 'zh-cn',
      path       : location.pathname,
      recordIP   : false,
      serverURLs : ''
    });
  }, window.Valine);
});
</script>

</body>
</html>
